﻿namespace Smugmug
{
    public class LoginWithHash : ILoginMethod
    {
        public LoginWithHash(string apiKey, int userId, string hash)
        {
            ApiKey = apiKey;
            UserId = userId;
            Hash = hash;
        }

        public string ApiKey { get; private set; }
        public int UserId { get; private set; }
        public string Hash { get; private set; }

        public Login Login(SmugmugClient client)
        {
            return client.LoginWithHash(UserId, Hash, ApiKey, null, null, null);
        }
    }
}